import { Component } from '@angular/core';
import { NavController, NavParams } from 'ionic-angular';
import { HttpService } from '../../../providers/http.service';
import { Storage } from '@ionic/storage';

@Component({
  templateUrl: 'used-info.html'
})
export class UsedInfo {
  constructor(
    private navCtrl: NavController,
    private navParams: NavParams,
    private httpservice: HttpService,
    private storage: Storage,
  ) {
    this.storage.get('user').then(val => {
      let param = {
        type: 3,
        userId: val.id,
        tipId: '1'
      }
      this.httpservice.addByRead(param).subscribe(data => {

      }, err => {

      });
    }).catch(err => {

    })
  }
}